<template>
    <div class="main"></div>
</template>
 
<script>
import drawPic from "../../utils/drawPic.js";
import { calendar } from "@/lib/calendar.js";
import dayjs from "@/lib/day.js";
import { chineseDate } from "@/lib/day.js";

export default {
    props: ["content"],
    computed: {},
    data() {
        return {
            px: 3,
            path: "",
        };
    },
    watch: {},
    mounted() {
        const query = this.createSelectorQuery();
        query
            .select("#myCanvas")

            .fields({ node: true })
            .exec((res) => {
                console.log(res);
                const canvas = res[0].node;

                this.create(this.content, canvas);
            });
    },
    methods: {},
};
</script>

<style lang="less" scoped>
.main {
    user-select: none;

    display: flex;
    justify-content: center;
    align-items: center;
    background-color: antiquewhite;
    height: 100vh;
}
canvas {
    width: 1200px;
    height: 1800px;
    background-color: white;
}
.pleace {
    position: absolute;
    font-family: Noto Serif SC;
    color: transparent;
    z-index: -1;
}
</style>